import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    amapWebKey: '0cef2b0d5709b8f80c48d5ff4b6c5754',
    amapUrl: 'https://restapi.amap.com',
    oss: 'https://public-trip.oss-cn-shenzhen.aliyuncs.com',
    location: {}, // 用户当前位置信息
    cityInfo: {}, // 用户当前所在城市信息
    weatherInfo: {}, // 用户当前所在城市天气信息
    trafficInfo: {}, // 用户附近的交通态势,
    nowSelect: {},
    httpRouteList:
      'http://unionpay.citylinkdata.com/zhuhai_timely_bus/api/getRouteList?',
    httpRouteVehicle:
      'http://unionpay.citylinkdata.com/zhuhai_timely_bus/api/getRouteVehicle?',
    httpMap:
      'https://restapi.amap.com/v3/bus/linename?s=rsv3&extensions=all&key=bcf440487a27cc1618c932702212f006&platform=JS&csid=D5E6CB7C-4CBC-4FF3-85D8-8AD8C05C8B1A&pageIndex=1&offset=1'
  },
  mutations: {}
})

export default store
